# -*- coding: utf-8 -*-
'''
关于folium.Map()的参数
folium.Map(
     location=None,
     width='100%',
     height='100%',
     left='0%',
     top='0%',
     position='relative',
     tiles='OpenStreetMap',#地图样式
     attr=None,
     min_zoom=0,
     max_zoom=18,#地图可以手动调节的最大比例饿，默认18级
     zoom_start=10,
     min_lat=-90,
     max_lat=90,
     min_lon=-180,
     max_lon=180,
     max_bounds=False,
     crs='EPSG3857',
     control_scale=False,#是否为地图添加比例尺
     preter_canvas=False,
     no_touch=False,#是否默认手动
     disable_3d=False,
     png_enabled=False,
     zoom_control=True,
     **kwargs,)
#内建地图的几种样式
“OpenStreetMap"
"Mapbox Bright"
"Mapbox Control Room"
"Stamen"
"Cloudmade"
"Mapbox"
"CartoDB"
#以上部分需要申请key
可以取网站:http://openwhatevermap.xyz/或http://leaflet-extras.github.io/leaflet-providers/preview/
去找底图
'''
import folium

#m=folium.Map()
#m.save('map.html')

#m=folium.Map([40.002694,116.322373],zoom_start=15,control_scalse=True)
#m.save('清华大学校区.html')

#地势地形底图
#m=folium.Map([40.002694,116.322373],tiles='Stamen Terrain',
#             zoom_start=15,
#             control_scale=True)
#m.save('地势地形底图.html')

#黑白无标记底图
#m=folium.Map([40.002694,116.322373],tiles='Stamen Toner',
#             zoom_start=15,
#             control_scale=True)
#m.save('黑白无标记底图.html')


#水墨画底图
#m=folium.Map([40.002694,116.322373],tiles='Stamen Watercolor',
#             zoom_start=15,
#             control_scale=True)
#m.save('水墨画底图.html')


#高德地图
#m=folium.Map([40.002694,116.322373],tiles='https://webrd02.is.autonavi.com/appmaptile?lang=zh_en&size=1&scale=1&style=8&x={x}&y={y}&z={z}',
#             zoom_start=15,
#             attr='高德-中英文对照')

#m.save('高德地图.html')

#纯英文底图
#m=folium.Map([40.002694,116.322373],tiles='https://webrd02.is.autonavi.com/appmaptile?lang=en&size=1&scale=1&style=8&x={x}&y={y}&z={z}',
#             zoom_start=15,
#             attr='高德-中英文对照')

#m.save('纯英文地图.html')

#卫星遥感
#m=folium.Map([40.002694,116.322373],tiles='https://wprd02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',
#             zoom_start=15,
#             attr='高德-卫星遥感影像图')
#m.save('高德-卫星遥感影像图.html')

#街道图
#m=folium.Map([40.002694,116.322373],tiles='https://wprd01.is.autonavi.com/appmaptile?style=8&x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=8&ltype=11',
#             zoom_start=15,
#             attr='高德-街道图')
#m.save('街道图.html')

#常规图
m=folium.Map([40.002694,116.322373],tiles='https://wprd01.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=7',
             zoom_start=15,
             attr='高德-常规图')
m.save('高德-常规图.html')
